
<%@ page import="java.util.ResourceBundle" %>
<%@ page import="com.gasstation.user.User" %>
<html>
    <head>
        <title>Gasstation App</title>
        <meta name="layout" content="main" />
        <script type="text/javascript">
	    	$(document).ready(function() {
	    		$('.short').TooLong({ 'len' : 20 });
	    		$('.shortComment').TooLong({ 'len' : 30 });
			});
	    </script>
	    <style type="text/css">
	    	h2 { margin-bottom: 12px; }
	    	.box { padding: 20px; }
	    </style>
    </head>
    <body>
    	<h1><g:message code="page.index.headline" default="welcome" /></h1>
    	<sec:ifNotLoggedIn>
    		<p class="big"><g:message code="page.index.signin" default="signin" /></p>
    		<g:render template="/login/loginForm" />
		</sec:ifNotLoggedIn>
		<sec:ifLoggedIn>
			<p class="big">You're signed in as <sec:loggedInUserInfo field="username" /></p>
				<h2>Gas Summary</h2>
				<div class="box fullsize">
				<g:include controller="gasSummary" action="index" />
				</div>

		</sec:ifLoggedIn>
    </body>
</html>
